package cc.idoone.codegen.config;

/**
 * 全局配置
 *
 * @auther hemj
 * @since 2020/8/25
 */
public class CodeGenConfig {

	public static final String ORM_MYBATIS = "mybatis";
	public static final String ORM_MYBATIS_PLUS = "mybatisplus";

	/**
	 * 代码输出目录
	 */
	private String outputDir;
	/**
	 * 代码注释：作者
	 */
	private String author;
	/**
	 * 执行成功后是否打开目录
	 */
	private Boolean openOnFinish;
	/**
	 * mybatis, mybatisplus
	 */
	private String ormFramework = ORM_MYBATIS_PLUS;
	/**
	 * mybatisplus
	 */
	private MybatisplusConfig mybatisplus;
	/**
	 * 数据库连接配置信息
	 */
	private DataSourceConfig dataSource;
	/**
	 * MyBatis 配置
	 */
	private EntityConfig entity;
	/**
	 * MapperConfig
	 */
	private MapperConfig mapper;
	/**
	 * 模块配置信息
	 */
	private ModuleConfig module;

	public String getOutputDir() {
		return outputDir;
	}

	public void setOutputDir(String outputDir) {
		this.outputDir = outputDir;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Boolean getOpenOnFinish() {
		return openOnFinish;
	}

	public void setOpenOnFinish(Boolean openOnFinish) {
		this.openOnFinish = openOnFinish;
	}

	public String getOrmFramework() {
		return ormFramework;
	}

	public void setOrmFramework(String ormFramework) {
		this.ormFramework = ormFramework;
	}

	public MybatisplusConfig getMybatisplus() {
		return mybatisplus;
	}

	public void setMybatisplus(MybatisplusConfig mybatisplus) {
		this.mybatisplus = mybatisplus;
	}

	public DataSourceConfig getDataSource() {
		return dataSource;
	}

	public void setDataSource(DataSourceConfig dataSource) {
		this.dataSource = dataSource;
	}

	public EntityConfig getEntity() {
		return entity;
	}

	public void setEntity(EntityConfig entity) {
		this.entity = entity;
	}

	public MapperConfig getMapper() {
		return mapper;
	}

	public void setMapper(MapperConfig mapper) {
		this.mapper = mapper;
	}

	public ModuleConfig getModule() {
		return module;
	}

	public void setModule(ModuleConfig module) {
		this.module = module;
	}

}
